

package com.platform.security.exception;

import org.springframework.http.HttpStatus;

public class UsernameNotFoundException extends Authentication2Exception {

    public UsernameNotFoundException(String msg) {
        super(msg);
    }

    @Override
    public String getOAuth2ErrorCode() {
        return "username_not_found";
    }

    @Override
    public int getHttpErrorCode() {
        return HttpStatus.BAD_REQUEST.value();
    }
}
